-- GENERATED SPELL FOR [Wounded Westfall Infantry] --


function spell0_27482(pUnit, Event) --@Holy Shock,n/a--
pUnit:FullCastSpellOnTarget(32771,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27482', 591, 1)
end

function spell1_27482(pUnit, Event) --@Seal of Command,n/a--
pUnit:FullCastSpellOnTarget(20424,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27482', 653, 1)
end

function spell2_27482(pUnit, Event) --@Seal of Command,Self--
pUnit:FullCastSpellOnTarget(29385,pUnit)
pUnit:RegisterEvent('Sorts_27482', 30000, 1)
end

function Sorts_27482(pUnit, Event)
local choix_sorts_27482 = math.random(0, 2)
if choix_sorts_27482 == 0 then
pUnit:RegisterEvent('spell0_27482', 1, 1)
end
if choix_sorts_27482 == 1 then
pUnit:RegisterEvent('spell1_27482', 1, 1)
end
if choix_sorts_27482 == 2 then
pUnit:RegisterEvent('spell2_27482', 1, 1)
end
end

function mob27482_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27482', math.random(1500, 3000), 1)
end

function mob27482_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27482_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27482_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27482, 1, 'mob27482_Action')
RegisterUnitEvent(27482, 2, 'mob27482_Leave')
RegisterUnitEvent(27482, 3, 'mob27482_Kill')
RegisterUnitEvent(27482, 4, 'mob27482_Die')
